<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>平台列表</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/static/css/oksub.css">
    <script type="text/javascript" src="/static/lib/loading/okLoading.js"></script>
</head>

<body>
<div class="ok-body">
    <!--模糊搜索区域-->
    <div class="layui-row">
        <!-- <form class="layui-form ok-search-form">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">开始日期</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" placeholder="开始日期" autocomplete="off" id="startTime" name="startTime">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">截止日期</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" placeholder="截止日期" autocomplete="off" id="endTime" name="endTime">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" placeholder="账号" autocomplete="off" name="username">
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label">昵称</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" placeholder="昵称" autocomplete="off" name="nickname">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">邮箱</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" placeholder="邮箱" autocomplete="off" name="email">
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label">请选择状态</label>
                <div class="layui-input-inline">
                    <select name="status" lay-verify="" lay-search>
                        <option value="" selected>请选择状态</option>
                        <option value="normal">启用</option>
                        <option value="stop">停用</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <button class="layui-btn" lay-submit="" lay-filter="search">
                        <i class="layui-icon">&#xe615;</i>
                    </button>
                </div>
            </div>
        </div>
    </form> -->
    </div>
    <!--数据表格-->
    <table class="layui-hide" id="tableId" lay-filter="tableFilter"></table>
</div>
<!--js逻辑-->
<script src="/static/lib/layui/layui.js"></script>
<script>
    layui.use(["element", "jquery", "table", "form", "laydate", "okLayer", "okUtils", "okMock"], function () {
        let table = layui.table;
        let form = layui.form;
        let laydate = layui.laydate;
        let okLayer = layui.okLayer;
        let okUtils = layui.okUtils;
        let okMock = layui.okMock;
        let $ = layui.jquery;

        okLoading.close($);


        let userTable = table.render({
            elem: '#tableId',
            url: '/addons/platform_manage/index/index',
            limit: 20,
            page: true,
            toolbar: true,
            toolbar: "#toolbarTpl",
            height: 'full',
            cellMinWidth: 120,
            cols: [[
                { type: "checkbox", fixed: "left" },
                { field: "id", title: "ID", sort: true },
                { field: "name", title: "应用名称" },
                { field: "type", title: "应用类型" },
                { field: "create_time", title: "创建时间" },

            ]],
            done: function (res, curr, count) {
                console.info(res, curr, count);
            }
        });






    })
</script>


</body>

</html>